package com.CmJava.config;

import com.CmJava.entity.IdelUser;
import io.netty.channel.Channel;
import io.netty.handler.codec.http.DefaultHttpHeaders;
import io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory;
import io.netty.handler.codec.http.websocketx.WebSocketVersion;
import org.springframework.context.annotation.Bean;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@org.springframework.context.annotation.Configuration
public class ChatConfiguration {

    @Bean
    public SimpleDateFormat getThisMoment(){
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    }

    @Bean
    public HashMap getChannels(){
        HashMap<IdelUser, Channel> channels = new HashMap<>();
        return channels;
    }




}
